package com.ambow.Entity;
import java.io.Serializable;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.persistence.*;

@Entity
@Table
public class Major extends ID implements Serializable {
	private String name;
	  private String remark;
	  @OneToMany(targetEntity=Bclass.class,mappedBy="major")
	  private List<Bclass> bclass;
	  @OneToMany(mappedBy="major")
	  private Set<PackageBook> packageBooks=new HashSet<PackageBook>();//编辑套书
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getRemark() {
			return remark;
		}
		public void setRemark(String remark) {
			this.remark = remark;
		}
		public List<Bclass> getBclass() {
			return bclass;
		}
		public void setBclass(List<Bclass> bclass) {
			this.bclass = bclass;
		}
		public Set<PackageBook> getpBooks() {
			return packageBooks;
		}
		public void setpBooks(Set<PackageBook> packageBooks) {
			this.packageBooks = packageBooks;
		}
		  
}
